from django.urls import path
from . import views

urlpatterns = [
    # AI服务配置
    path('ai_config/', views.ai_config, name='ai_config'),
    path('ai_config/<int:config_id>/delete/', views.ai_config_delete, name='ai_config_delete'),
    path('ai_config/<int:config_id>/test/', views.test_ai_config, name='test_ai_config'),
    
    # 推送项目配置
    path('push_config/', views.push_config, name='push_config'),
    
    # 邮箱配置
    path('email_config/create/', views.email_config_create, name='email_config_create'),
    path('email_config/<int:config_id>/delete/', views.email_config_delete, name='email_config_delete'),
    path('email_config/<int:config_id>/test/', views.test_email_config, name='test_email_config'),
    
    # 钉钉配置
    path('dingtalk_config/create/', views.dingtalk_config_create, name='dingtalk_config_create'),
    path('dingtalk_config/<int:config_id>/delete/', views.dingtalk_config_delete, name='dingtalk_config_delete'),
    path('dingtalk_config/<int:config_id>/test/', views.test_dingtalk_config, name='test_dingtalk_config'),
    
    # 飞书配置
    path('feishu_config/create/', views.feishu_config_create, name='feishu_config_create'),
    path('feishu_config/<int:config_id>/delete/', views.feishu_config_delete, name='feishu_config_delete'),
    path('feishu_config/<int:config_id>/test/', views.test_feishu_config, name='test_feishu_config'),
    
    # 推送关键词管理
    path('keywords/', views.keywords, name='keywords'),
    path('keywords/<int:keyword_id>/', views.keyword_detail, name='keyword_detail'),
    path('keywords/<int:keyword_id>/delete/', views.keyword_delete, name='keyword_delete'),
    path('keywords/<int:keyword_id>/history/', views.keyword_history, name='keyword_history'),
    
    # 推送执行列表
    path('push_tasks/', views.push_tasks, name='push_tasks'),
    path('push_tasks/create/', views.push_task_create, name='push_task_create'),
    path('push_tasks/<int:task_id>/', views.push_task_detail, name='push_task_detail'),
    path('push_tasks/<int:task_id>/delete/', views.push_task_delete, name='push_task_delete'),
    path('push_tasks/<int:task_id>/toggle/', views.push_task_toggle, name='push_task_toggle'),
]